package com.ws.soa.consumer.dao.mapper;

import com.ws.soa.consumer.domain.WorksLaudDO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * WorksLaudDAO继承基类
 */
@Repository
public interface WorksLaudMapper extends MyBatisBaseMapper<WorksLaudDO, String>{


    List<WorksLaudDO> findAllByWorkId(String workId);

    /**
     * 查询某个作品的点赞数
     *
     * @param workId 作品id
     * @return 点赞数
     */
    Long getWorkLaudCount(String workId);
}